<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>福建东侨政府网</title>
<meta name="Keywords"
	content="">
<meta name="description"
	content="">
<link href="css/main.css" rel="stylesheet" type="text/css">
<link href="css/index.css" rel="stylesheet" type="text/css">
 <link href="css/screen.css"  rel="stylesheet" type="text/css" >
 <link rel="stylesheet" type="text/css" href="css/base.css">
 <link rel="stylesheet" type="text/css" href="css/login.css">
 <script src="js/jquery-1.10.2.min.js"></script>
<script type="text/javascript">
	$(function(){
					$("#userLogin").click(function(){
							$("#userLogin").val("登陆中,请稍等...");
							$.ajax({
							type:'POST',
							url:'guest/login.do',
							data:$('#form-login').serialize(),//将表单序列化字符串
							dataType:'json',
							success:function(data){
								if(data && data.success){
									window.location.href='guest/userIndex.do';
								}else{
													$("#userLogin").val("登陆");	
												switch(data.status){
													case -2:
														$("#span2").style.display="block";
														$("#span2").html(data.msg);
													break;
													default:
														$("#span1").style.display="block";
														$("#span1").html(data.msg);
													break;
												};
												
									}}
						});
					});
	});
</script>
</head>
<body>
	<jsp:include page="/jsp/top.jsp"></jsp:include>
	<div class="yc_container">
			<div class="yc_location">
				当前位置：<a href="/">首页</a> &gt; <a href="/ycxzz">用户登录</a>
			</div>
			<div class="logina-main main clearfix">
            <div class="tab-con">
                <form id="form-login" method="post" action="" >
                    <div id='login-error' class="error-tip"></div>
                    <table border="0" cellspacing="0" cellpadding="0" >
                        <tbody>
                            <tr>
                                <th>账户</th>
                                <td width="245">
                                    <input id="username" type="text" name="username" placeholder="账号/电子邮箱/手机号" autocomplete="off" value="">
                                  </td>
                                <td>
                                	<div id="span1" style="display: none;"></div>
                                </td>
                            </tr>
                            <tr>
                                <th>密码</th>
                                <td width="245">
                                    <input id="password" type="password" name="password" placeholder="请输入密码" autocomplete="off" value="">
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr id="tr-vcode" >
                                <th>验证码</th>
                                <td width="245">
                                    <div class="valid">
                                        <input type="text" name="vcode"><img class="vcode" src="" width="85" height="35" alt="">
                                    </div>
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr class="find">
                                <th></th>
                                <td>
                                    <div>
                                        <label class="checkbox" for="chk11"><input style="height: auto;" id="chk11" type="checkbox" name="remember_me" >记住我</label>
                                        <a href="passport/forget-pwd">忘记密码？</a>
                                    </div>
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <th></th>
                                <td width="245"><input class="confirm" id="userLogin" type="button" value="登  录"></td>
                                <td></td>
                            </tr>
                            <tr>
                                <th></th>
                                <td width="245">第三方账号登陆</td>
                            </tr>
                            <tr>
                                <th></th>
                                <td width="245">
                                		<img alt="" src="images/weixing.png">
                                		<img alt="" src="images/qq.png">
                                </td>
                                <td></td>
                            </tr>
                        </tbody>
                    </table>
                </form>
            </div>
            <div class="reg">
                <p>还没有账号？<br>赶快免费注册一个吧！</p>
                <a class="reg-btn" href="guest/userRegister.do">立即免费注册</a>
            </div>
        </div>
        </div>
	<jsp:include page="/jsp/bottom.jsp"></jsp:include>
</body>
</html>
